home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
dviware
/
dviapollo
/
window.doc
< prev
next >
Wrap
Text File
|
1990-10-01
|
1KB
|
28 lines
A DVI window will have the following operations:
Open: Filename X Window -> DVIW # errormessage
Opens a dvi window viewing a particular file.
Close: DVIW -> Window
Closes a dvi window. The text on the window is unaffected. Each
time a showpage operation is done, the DVIW checks whether the file
has changed; if it has, the old file is closed and the new file is
opened.
Showpage: DVIW X pagenum X xscroll X yscroll -> realpage
Attempts to show page pagenum of the file associated with DVIW.
Realpage will be different from pagenum if pagenum is not positive
or the document does not have that many pages.
For now, we will forbid having several of these open for one process
at once. However, it should be possible to open and close several
DVIW's in sequence without accumulating garbage in the address space.
The DVIW's need the following state information:
Window
File descriptor
Cpagep: Pointer to start of current page in the file
Ppagep: Pointer to previous page in the file
Pagenum: Current page number in the file
The routines used to display the file will be determined at load time.
The names of the routines is a historical phenomenon not documented
here.